//
//  HXCategoryDataModel.m
//  ZCooking
//
//  Created by 韩旭 on 16/9/20.
//  Copyright © 2016年 HX_. All rights reserved.
//

#import "HXCategoryDataModel.h"
#import "HXTagsModel.h"

@implementation HXCategoryDataModel
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"description"]) {
        self.Description = value;
    }
}
- (instancetype)initWithDic:(NSDictionary *)dic {
    self = [super initWithDic:dic];
    if (self) {
        self.tags_info = [HXTagsModel getTagsModelWithArray:dic[@"tags_info"]];
    }
    return self;
}
+ (NSArray *)getCategoryDataModelWithArray:(NSArray *)array {
    NSMutableArray *arrAll = [NSMutableArray array];
    for (NSDictionary *dic in array) {
        [arrAll addObject:[HXCategoryDataModel ModelWithDic:dic]];
    }
    return arrAll;
}
@end
